package com.jsftoolkit.ajax;

import javax.faces.FacesException;
import javax.faces.context.FacesContext;

/**
 * Interface for classes that create instances of {@link AjaxContext}.
 * 
 * @author noah
 * 
 */
public interface AjaxContextFactory {
	/**
	 * Create the {@link AjaxContext} for the current request.
	 * 
	 * @param context
	 *            the {@link FacesContext} for the current request.
	 * @return your {@link AjaxContext} implementation, ready to use.
	 * @throws FacesException
	 */
	AjaxContext create(FacesContext context) throws FacesException;
}
